﻿using Md.Api.Model.Manage.MdProduct.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdProduct;
/// <summary>
/// 通过编号获取产品服务
/// </summary>
public class GetMdProductByIdService : ApiBase<RequestGetMdProductByIdModel>
{
    /// <summary>
    /// 产品仓储
    /// </summary>
    public MdProductRep mdProductRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdProductRep.GetMdProductById(Parameter.ProductId);

        Result.Data = res;
    }
}

